package com.boolib.service;

import com.boolib.commons.entity.ServerResponse;
import com.boolib.pojo.ShopCategory;
import com.boolib.service.base.BaseService;
import com.boolib.service.base.IBaseService;

public interface ICategoryService extends IBaseService<ShopCategory> {


    ServerResponse addCategory(ShopCategory shopCategory, String createBy);

    ServerResponse updateCategory(ShopCategory shopCategory, String updateBy);

    ServerResponse selectAll();

    ServerResponse selectCategoryTree();

    ServerResponse selectBrothers(Integer brotherId);

    ServerResponse selectParent(Integer domId);

    ServerResponse selectParents(Integer domId);

    ServerResponse selectChildren(Integer domId);

    ServerResponse forbid(Integer categoryId,String updateBy);

    ServerResponse recover(Integer categoryId, String updateBy);

    ServerResponse selectOneNormal(Integer id);
}
